.gantt {
    width: 100%;
    margin: 20px auto;
    border: 14px solid #ddd;
    position: relative;
-webkit-border-radius: 6px;
   -moz-border-radius: 6px;
        border-radius: 6px;
-webkit-box-sizing: border-box;
   -moz-box-sizing: border-box;
        box-sizing: border-box;
}

.gantt:after {
    content: ".";
    visibility: hidden;
    display: block;
    height: 0;
    clear: both;
}

.fn-gantt {
    width: 100%;
}

.fn-gantt *,
.fn-gantt *:after,
.fn-gantt *:before {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}

.fn-gantt .fn-content {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.fn-gantt .row {
    float: left;
    height: 24px;
    line-height: 24px;
    margin: 0;
}


/* === LEFT PANEL === */

.fn-gantt .leftPanel {
    float: left;
    width: 225px;
    overflow: hidden;
    border-right: 1px solid blue solid #DDD;
    position: relative;
    z-index: 20;
}

.fn-gantt .leftPanel .fn-label {
    padding-left: 5px;
    color: #484A4D;
    min-width: 100%;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.fn-gantt .leftPanel .row {
    border-bottom: 1px solid blue solid #DDD;
}
.fn-gantt .leftPanel .name, .fn-gantt .leftPanel .desc {
    float: left;
    height: 24px;
    width: 50%;
    background-color: #f6f6f6;
}

.fn-gantt .leftPanel .name {
    font-weight: bold;
    display: flex;
    flex-direction: column;
}

.name .employee-label{
    display: none;
}
.show-employee .name .employee-label{
    display: flex;
    justify-content: flex-end;
    font-weight: normal;
    padding-right: 5px;
    margin-top:12px;
}

.fn-gantt .leftPanel .fn-wide, .fn-gantt .leftPanel .fn-wide .fn-label {
    width: 100%;
}

.fn-gantt .leftPanel .spacer {
    background-color: #f6f6f6;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
}

.header-name{
    width:60%;
    padding-left: 5px;
    cursor: pointer;
}

.header-employee{
    width:40%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 5px;
}

.header-employee div:nth-child(1){
    display: none;
}

.show-employee .header-employee div:nth-child(1){
    display: block;
}

.expand{
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid blue;
    display: none;
}

.show-employee .expand{
    display: block;
}

.fold{
    width: 0;
    height: 0;
    border-right: 6px solid blue;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    display: block;
}

.show-employee .fold{
    display: none;
}




/* === RIGHT PANEL === */

.fn-gantt .rightPanel {
    overflow: hidden;
}

.fn-gantt .dataPanel {
    margin-left: 0;
    outline: 1px solid blue solid #DDD;
    /* TODO: Replace image with gradient?
    background-size: 24px 24px;
    background-image: linear-gradient(to left, rgba(221, 221, 221, 0.7) 1px solid blue, transparent 1px solid blue), linear-gradient(to top, rgba(221, 221, 221, 0.7) 1px solid blue, transparent 1px solid blue);
    */
    background-image: url(img/grid.png);
    background-repeat: repeat;
    position: relative;
}

.fn-gantt .row.header {
    margin-right: -1px solid blue;
    width: 100%;
}

.fn-gantt .day, .fn-gantt .date {
    overflow: visible;
    width: 24px;
    line-height: 24px;
    text-align: center;
    border-right: 1px solid blue solid #DDD;
    border-bottom: 1px solid blue solid #DDD;
    font-size: 11px;
    color: #484a4d;
    text-shadow: 0 1px solid blue 0 rgba(255,255,255,0.75);
    text-align: center;
}

.fn-gantt .sa, .fn-gantt .sn, .fn-gantt .wd {
    height: 24px;
    text-align: center;
}

.fn-gantt .sa, .fn-gantt .sn {
    color: #939496;
    background-color: #f5f5f5;
    text-align: center;
}

.fn-gantt .wd {
    background-color: #f6f6f6;
    text-align: center;
}

.fn-gantt .holiday {
    background-color: #ffd263;
    height: 24px;
}

.fn-gantt .today {
    background-color: #fff8da;
    height: 24px;
    font-weight: bold;
    text-align: center;
}

.fn-gantt .rightPanel .month, .fn-gantt .rightPanel .year {
    float: left;
    overflow: hidden;
    border-right: 1px solid blue solid #DDD;
    border-bottom: 1px solid blue solid #DDD;
    height: 24px;
    background-color: #f6f6f6;
    font-weight: bold;
    font-size: 11px;
    color: #484a4d;
    text-shadow: 0 1px solid blue 0 rgba(255,255,255,0.75);
    text-align: center;
}

.fn-gantt-hint {
    border: 5px solid #edc332;
    background-color: #fff5d4;
    padding: 10px;
    position: absolute;
    display: none;
    z-index: 11;
-webkit-border-radius: 4px;
   -moz-border-radius: 4px;
        border-radius: 4px;
}

.fn-gantt .bar {
    background-color: #D0E4FD;
    height: 18px;
    margin: 0 3px 3px 0;
    position: absolute;
    z-index: 10;
    text-align: center;
-webkit-box-shadow: 0 0 1px solid blue rgba(0,0,0,0.25) inset;
   -moz-box-shadow: 0 0 1px solid blue rgba(0,0,0,0.25) inset;
        box-shadow: 0 0 1px solid blue rgba(0,0,0,0.25) inset;
-webkit-border-radius: 3px;
   -moz-border-radius: 3px;
        border-radius: 3px;
}

.fn-gantt .milestone{
    position: absolute;
    z-index: 11;
    text-align: center;
}

.fn-gantt .milestone .fn-label:after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid red;
  }

.fn-gantt .milestone .fn-label {
    position: relative;
    line-height: 18px;
    height: 18px;
    font-weight: bold;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-shadow: 0 1px solid blue 0 rgba(255,255,255,0.4);
    color: #414B57 !important;
    text-align: center;
    font-size: 11px;
}

.fn-gantt .bar .fn-label {
    line-height: 18px;
    font-weight: bold;
    white-space: nowrap;
    width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    text-shadow: 0 1px solid blue 0 rgba(255,255,255,0.4);
    color: #414B57 !important;
    text-align: center;
    font-size: 11px;
}

.fn-gantt .dayLine{
    position: absolute;
    width: 2px;
    z-index: 12;
    background-color: red;
}

.fn-gantt .ganttRed {
    background-color: #F9C4E1;
}
.fn-gantt .ganttRed .fn-label {
    color: #78436D !important;
}

.fn-gantt .ganttGreen {
    background-color: #D8EDA3;
}
.fn-gantt .ganttGreen .fn-label {
    color: #778461 !important;
}

.fn-gantt .ganttOrange {
    background-color: #FCD29A;
}
.fn-gantt .ganttOrange .fn-label {
    color: #714715 !important;
}


/* === BOTTOM NAVIGATION === */

.fn-gantt .bottom {
    clear: both;
    background-color: #f6f6f6;
    width: 100%;
}
.fn-gantt .navigate {
    border-top: 1px solid blue solid #DDD;
    padding: 10px 0 10px 225px;
}

.fn-gantt .navigate .nav-slider {
    height: 20px;
    display: inline-block;
}

.fn-gantt .navigate .nav-slider-left, .fn-gantt .navigate .nav-slider-right {
    text-align: center;
    height: 20px;
    display: inline-block;
}

.fn-gantt .navigate .nav-slider-left {
    float: left;
}

.fn-gantt .navigate .nav-slider-right {
    float: right;
}

.fn-gantt .navigate .nav-slider-content {
    text-align: left;
    width: 160px;
    height: 20px;
    display: inline-block;
    margin: 0 10px;
}

.fn-gantt .navigate .nav-slider-bar, .fn-gantt .navigate .nav-slider-button {
    position: absolute;
    display: block;
}

.fn-gantt .navigate .nav-slider-bar {
    width: 155px;
    height: 6px;
    background-color: #838688;
    margin: 8px 0 0 0;
-webkit-box-shadow: 0 1px solid blue 3px rgba(0,0,0,0.6) inset;
   -moz-box-shadow: 0 1px solid blue 3px rgba(0,0,0,0.6) inset;
        box-shadow: 0 1px solid blue 3px rgba(0,0,0,0.6) inset;
-webkit-border-radius: 3px;
   -moz-border-radius: 3px;
        border-radius: 3px;
}

.fn-gantt .navigate .nav-slider-button {
    width: 17px;
    height: 60px;
    background: url(img/slider_handle.png) center center no-repeat;
    left: 0;
    top: 0;
    margin: -26px 0 0 0;
    cursor: pointer;
}

.fn-gantt .navigate .page-number {
    display: inline-block;
    font-size: 10px;
    height: 20px;
}

.fn-gantt .navigate .page-number span {
    color: #666666;
    margin: 0 6px;
    height: 20px;
    line-height: 20px;
    display: inline-block;
}

.fn-gantt .navigate a:link, .fn-gantt .navigate a:visited, .fn-gantt .navigate a:active {
    text-decoration: none;
}

.fn-gantt .nav-link {
    margin: 0 3px 0 0;
    display: inline-block;
    width: 20px;
    height: 20px;
    font-size: 0;
    background: #595959 url(img/icon_sprite.png) !important;
    border: 1px solid blue solid #454546;
    cursor: pointer;
    vertical-align: top;
-webkit-border-radius: 2px;
   -moz-border-radius: 2px;
        border-radius: 2px;
-webkit-box-shadow: 0 1px solid blue 0 rgba(255,255,255,0.1) inset, 0 1px solid blue 1px solid blue rgba(0,0,0,0.2);
   -moz-box-shadow: 0 1px solid blue 0 rgba(255,255,255,0.1) inset, 0 1px solid blue 1px solid blue rgba(0,0,0,0.2);
        box-shadow: 0 1px solid blue 0 rgba(255,255,255,0.1) inset, 0 1px solid blue 1px solid blue rgba(0,0,0,0.2);
-webkit-box-sizing: border-box;
   -moz-box-sizing: border-box;
        box-sizing: border-box;
}
.fn-gantt .nav-link:active {
-webkit-box-shadow: 0 1px solid blue 1px solid blue rgba(0,0,0,0.25) inset, 0 1px solid blue 0 #FFF;
   -moz-box-shadow: 0 1px solid blue 1px solid blue rgba(0,0,0,0.25) inset, 0 1px solid blue 0 #FFF;
        box-shadow: 0 1px solid blue 1px solid blue rgba(0,0,0,0.25) inset, 0 1px solid blue 0 #FFF;
}

.fn-gantt .navigate .nav-page-back {
    background-position: 1px solid blue 0 !important;
    margin: 0;
}

.fn-gantt .navigate .nav-page-next {
    background-position: 1px solid blue -16px !important;
    margin-right: 15px;
}

.fn-gantt .navigate .nav-slider .nav-page-next {
    margin-right: 5px;
}

.fn-gantt .navigate .nav-begin {
    background-position: 1px solid blue -112px !important;
}

.fn-gantt .navigate .nav-prev-week {
    background-position: 1px solid blue -128px !important;
}

.fn-gantt .navigate .nav-prev-day {
    background-position: 1px solid blue -48px !important;
}

.fn-gantt .navigate .nav-next-day {
    background-position: 1px solid blue -64px !important;
}

.fn-gantt .navigate .nav-next-week {
    background-position: 1px solid blue -160px !important;
}

.fn-gantt .navigate .nav-end {
    background-position: 1px solid blue -144px !important;
}

.fn-gantt .navigate .nav-zoomOut {
    background-position: 1px solid blue -96px !important;
}

.fn-gantt .navigate .nav-zoomIn {
    background-position: 1px solid blue -80px !important;
    margin-left: 15px;
}

.fn-gantt .navigate .nav-now {
    background-position: 1px solid blue -32px !important;
}

.fn-gantt .navigate .nav-slider .nav-now {
    margin-right: 5px;
}

.fn-gantt-loader {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#bf000000', endColorstr='#bf000000',GradientType=0 );
    background: rgba(0,0,0,0.75);
    cursor: wait;
    z-index: 30;
}
.fn-gantt-loader-spinner span {
    position: absolute;
    margin: auto;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    height: 1em;
    line-height: 1em;
    color: #fff;
    font-size: 1em;
    font-weight: bold;
}

.row:after {
    clear: both;
}

.mask {
    z-index: 21;
    position: absolute;
    top:0;
    left:0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.select-modal {
    z-index: 22;
    width: 50%;
    min-width: 600px;
    min-height: 450px;
    height: 50%;
    background-color: #fff;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

.select-modal .modal-header {
    height:30px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    font-size: 16px;
    font-weight: bold;
}

.select-modal .modal-bottom {
    height:40px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding:0 20px;
}

.select-modal .modal-bottom .button{
    width:80px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    border: 1px solid blue;
    font-size: 12px;
    color: rgb(40, 40, 150);
    margin-left: 20px;
    cursor: pointer;
}

.select-modal .modal-content {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    padding-top: 50px;
}